import 'package:seedfour/generated/json/base/json_field.dart';
import 'package:seedfour/generated/json/account_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class AccountEntity {
	AccountBalance? balance;
	AccountMargin? margin;

	AccountEntity();

	factory AccountEntity.fromJson(Map<String, dynamic> json) => $AccountEntityFromJson(json);

	Map<String, dynamic> toJson() => $AccountEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class AccountBalance {
	int? total;
	String? sumAmount;
	String? plusAmount;
	String? minusAmount;
	List<AccountBalanceData>? data;

	AccountBalance();

	factory AccountBalance.fromJson(Map<String, dynamic> json) => $AccountBalanceFromJson(json);

	Map<String, dynamic> toJson() => $AccountBalanceToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class AccountBalanceData {
	String? uid;
	String? amount;
	String? name;
	String? mobile;

	AccountBalanceData();

	factory AccountBalanceData.fromJson(Map<String, dynamic> json) => $AccountBalanceDataFromJson(json);

	Map<String, dynamic> toJson() => $AccountBalanceDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class AccountMargin {
	int? total;
	String? sumAmount;
	List<AccountMarginData>? data;

	AccountMargin();

	factory AccountMargin.fromJson(Map<String, dynamic> json) => $AccountMarginFromJson(json);

	Map<String, dynamic> toJson() => $AccountMarginToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class AccountMarginData {
	String? uid;
	String? amount;
	String? name;
	String? mobile;

	AccountMarginData();

	factory AccountMarginData.fromJson(Map<String, dynamic> json) => $AccountMarginDataFromJson(json);

	Map<String, dynamic> toJson() => $AccountMarginDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}